<div class="layuimini-container layuimini-page-anim">
    <div class="layuimini-main">

        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>

    </div>
</div>

<script>
    layui.use(['form', 'table','miniPage','element'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table,
            miniPage = layui.miniPage;

        table.render({
            elem: '#currentTableId',
            url: 'http://localhost:8080/admin/selectalluser',
            toolbar: '#toolbarDemo',
            defaultToolbar: ['filter', 'exports', 'print', {
                title: '提示',
                layEvent: 'LAYTABLE_TIPS',
                icon: 'layui-icon-tips'
            }],
            cols: [[
                {field: 'id', width: 140, title: '用户ID'},
                {field: 'sex', width: 140, title: '性别'},
                {field: 'name', width: 160, title: '用户昵称'},
                {field: 'month', width: 140, title: '生日月份', sort: true},
                {field: 'date', width: 140, title: '生日日期'},
                {field: 'star', title: '星座', width: 140},
                {field: 'sign', width: 220, title: '个性签名'},
                {field: 'location', width: 200, title: '所在地区'},
                {field: 'acountgoodnum', width: 140, title: '用户点赞数', sort: true}
            ]],
            // limits: [10, 15, 20, 25, 50, 100],
            // limit: 15,
            page: true,
            skin: 'line'
        });

    });
</script>
